/******
	************************************************************************
	******
	** @project : XDrive_Step
	** @brief   : Stepper motor with multi-function interface and closed loop function. 
	** @brief   : 具有多功能接口和闭环功能的步进电机
	** @author  : unlir (知不知啊)
	** @contacts: QQ.1354077136
	******
	** @address : https://github.com/unlir/XDrive
	******
	************************************************************************
	******
	** {Stepper motor with multi-function interface and closed loop function.}
	** Copyright (c) {2020}  {unlir(知不知啊)}
	** 
	** This program is free software: you can redistribute it and/or modify
	** it under the terms of the GNU General Public License as published by
	** the Free Software Foundation, either version 3 of the License, or
	** (at your option) any later version.
	** 
	** This program is distributed in the hope that it will be useful,
	** but WITHOUT ANY WARRANTY; without even the implied warranty of
	** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	** GNU General Public License for more details.
	** 
	** You should have received a copy of the GNU General Public License
	** along with this program.  If not, see <http://www.gnu.org/licenses/>.
	******
	************************************************************************
******/


//Oneself
#include "dma.h"

/**
  * @brief  启用DMA
  * @param  NULL
  * @retval NULL
**/
void REIN_DMA_Init(void) 
{
	//启动时钟
  __HAL_RCC_DMA1_CLK_ENABLE();
	
  //启用DMA1_CH4中断(USART1_TX)
  HAL_NVIC_EnableIRQ(DMA1_Channel4_IRQn);
  //启用DMA1_CH5中断(USART1_RX)
  HAL_NVIC_EnableIRQ(DMA1_Channel5_IRQn);
}
